<?php
    include("Database.php");
    include("User.php");

    class Site{
        private $db;
        private $user;
        
        function __construct(){
            $this->db = new Database();
            $this->user = new User();
        }
        
        public function main(){
            include("login.php");
        }
		
		public function setUser($id, $name, $user, $pass, $mail, $super, $updateDate, $saveDate){
			$this->user->setId($id);
			$this->user->setName($name);
			$this->user->setUsername($user);
			$this->user->setPassword($pass);
			$this->user->setEmail($mail);
			$this->user->setSuper($isSuper);
			$this->user->setUpdateDate($updateDate);
			$this->user->setSaveDate($saveDate);
		}
		
		public function getUser(){
			return $this->user;
		}
		
		public function getDatabase(){
			return $this->db;
		}
    }

?>